/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4fb 0%, #fdfefe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 主容器 */
.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 700px;
}

/* 左侧装饰区域 */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #5fd1e6 0%, #4db1d5 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.illustration {
    margin: 40px 0;
}

.illustration-icon {
    font-size: 120px;
    opacity: 0.3;
}

.welcome-text {
    font-size: 18px;
    text-align: center;
    opacity: 0.95;
    font-weight: 300;
}

/* 右侧注册表单区域 */
.right-section {
    flex: 1.2;
    padding: 60px 70px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: visible;
}

.register-box {
    width: 100%;
    max-width: 450px;
}

.form-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* 表单样式 */
.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group label i {
    margin-right: 8px;
    color: #43e97b;
}

.required {
    color: #ff4757;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #43e97b;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.1);
}

.form-group input.error {
    border-color: #ff4757;
}

/* 密码输入框包装器 */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #43e97b;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background-color: #ff4757;
}

.strength-fill.medium {
    width: 66%;
    background-color: #ffa502;
}

.strength-fill.strong {
    width: 100%;
    background-color: #26de81;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

/* 错误提示 */
.error-message {
    display: block;
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

/* 注册按钮 */
.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
    margin-top: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.6);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 登录链接 */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #43e97b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #38f9d7;
}

/* 提示信息 */
.alert {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.alert.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section {
        padding: 40px 20px;
        min-height: 250px;
    }

    .logo-section h1 {
        font-size: 24px;
    }

    .illustration-icon {
        font-size: 80px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 18px;
    }
}
